//
//  UIAlertController+CZExtension.h
//  IntechSmartCampus
//
//  Created by awh on 2017/10/19.
//  Copyright © 2017年 awh. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIAlertController (CZExtension)

// Alert 样式

+ (void)presentAlertControllerWithTitle:(NSString *)title message:(NSString *)message doneBlock:(void (^)())block;

+ (void)presentAlertControllerWithTitle:(NSString *)title message:(NSString *)message doneBlock:(void (^)())block cancelBlock:(void (^)())cancelBlock;

+ (void)presentAlertControllerWithTitle:(NSString *)title
                                message:(NSString *)message
               withTextFieldPlaceholder:(NSString *)placeholder
                              doneBlock:(void (^)(NSString *result))block
                            cancelBlock:(void (^)())cancelBlock;

+ (void)presentAlertControllerWithTitle:(NSString *)title
                                message:(NSString *)message
                              doneTitle:(NSString *)doneTitle
                            cancelTitle:(NSString *)cancelTitle
                          completeBlock:(void (^)(BOOL isCancelled))completeBlock;

// Action 样式

+ (void)presentActionControllerWithTitle:(NSString *)title
                                 actions:(NSArray<UIAlertAction *> *)actions;

@end
